<%@page import="cn.school.entity.Admin"%>
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<div>
 <%
   Object o=session.getAttribute("USER_LOGIN");
   if(o==null){
	   out.print("<script>alert('你丫的是翻窗户进来的？');location.replace('login.jsp');</script>");
	   return;
   }
   //java.util.Date time=new java.util.Date(session.getLastAccessedTime());
   
 %>
 <%-- <h2>上次访问：<%=time %></h2> --%>
 <h1>欢迎你，<%=((Admin)o).getUsername()%>, <a href="logout.jsp">退出</a></h1>
</div>